<ul class="nav nav-tabs nav-stacked">
    <?php if (in_array('weixin/product/index', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/weixin/product/index') echo 'class="on"' ?>><a
                href="/weixin/product/index">产品管理</a>
        </li>
    <?php } ?>
    <?php if (in_array('weixin/product/class', $path)) { ?>
        <li <?php if ($_SERVER['REQUEST_URI'] == '/weixin/product/class') echo 'class="on"' ?>><a
                href="/weixin/product/class">报名管理</a>
        </li>
    <?php } ?>
</ul>
<style>
    .on {
        background: #DEDADA;
    }
</style>
